package com.hero.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

@SpringBootApplication
@EnableDiscoveryClient  // 注册到注册中心
@EnableConfigServer // Config Server 的注解
public class HeroConfigServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(HeroConfigServerApplication.class, args);
    }

}
